Skip to content

Conversation

@alextse-bg
Copy link
Contributor

@alextse-bg alextse-bg commented Jul 16, 2025

@alextse-bg alextse-bg force-pushed the WP-5168 branch 4 times, most recently from c107cb0 to 25c9a75 Compare July 16, 2025 14:21
@alextse-bg alextse-bg force-pushed the WP-5168 branch 5 times, most recently from fa2d675 to 35c71ca Compare July 18, 2025 14:21
@alextse-bg alextse-bg marked this pull request as ready for review July 18, 2025 14:22
const coin = bitgo.coin(req.decoded.coin);

// setup clients and retreive the keys
// TODO: this needs to be segerated if the EBE instance cannot retrieve both keys
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create a ticket and add here

@alextse-bg alextse-bg force-pushed the WP-5168 branch 6 times, most recently from fb598d9 to 4116bd6 Compare July 24, 2025 22:09
@alextse-bg alextse-bg force-pushed the WP-5168 branch 2 times, most recently from b3dc3d5 to 902eb4b Compare July 25, 2025 18:35
const { BigNumber } = await import('bignumber.js');

const MPC = new Ecdsa();
const publicKey = MPC.deriveUnhardened(params.commonKeychain, 'm/0').slice(0, 66);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: seed should be a parameter like m/{seed}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with default being m/0


const chainId = await baseCoin['getChainId']();

const [accountNumber, sequenceNo] = await baseCoin['getAccountDetails'](senderAddress);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you need to call the function like this?


// post processing of the response
if (isEthLikeCoin(baseCoin)) {
const { AbstractEthLikeNewCoins } = await import('@bitgo-beta/sdk-coin-eth');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't need to do this anymore. just cast as AbstractEthLikeNewCoins on baseCoin.

Copy link
Contributor

@mohammadalfaiyazbitgo mohammadalfaiyazbitgo Jul 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import from @bitgo-beta/abstract-eth

@alextse-bg alextse-bg force-pushed the WP-5168 branch 2 times, most recently from e9861f3 to d6e2002 Compare July 25, 2025 20:12
@alextse-bg alextse-bg force-pushed the WP-5168 branch 3 times, most recently from 1a4d80e to acef0ae Compare July 25, 2025 20:48
@alextse-bg alextse-bg changed the title Wp 5168 feat(ebe, mbe): added recovery to MPCv2 Jul 25, 2025
pranavjain97
pranavjain97 previously approved these changes Jul 25, 2025
Copy link
Contributor

@mohammadalfaiyazbitgo mohammadalfaiyazbitgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see unresolved comments.

@alextse-bg alextse-bg force-pushed the WP-5168 branch 3 times, most recently from aaae8a2 to 787c431 Compare July 28, 2025 18:27
@alextse-bg alextse-bg merged commit 0759b97 into master Jul 28, 2025
4 checks passed
@alextse-bg alextse-bg deleted the WP-5168 branch July 28, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants